package com.cw.mapper2;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cw.dto.HandworkPrepayinDto;
import com.cw.dto.VYqBrdjxxCondition;
import com.cw.entity.PatientBedMiddleRjbf;
import com.cw.entity.ThisIiPrepayin;
import com.cw.entity.VRJSZ;
import com.cw.entity.VYqBrdjxx;
import com.cw.vo.ViewRJSSVO;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;

@Repository
public interface RjbfCenterMapper extends BaseMapper<VYqBrdjxx> {
    List<VRJSZ> getVYqBrdjxxsRJSS(VYqBrdjxxCondition condition);

    ViewRJSSVO getRJSSInfoByPreId(BigDecimal preId);

    /**
     * 获取日间病房的详情
     * @param preid iiprepayin表的主键
     * @return com.cw.entity.VYqBrdjxx
     */
    VYqBrdjxx getRjbfCenterInfo(Integer preid);

    List<ThisIiPrepayin> getHandworkPrepayin(HandworkPrepayinDto handworkPrepayinDto);

    List<ThisIiPrepayin> getDoctorNameByCode(@Param("list") List<String> operCodeList);

    PatientBedMiddleRjbf selectSendFlagById(@Param("preid") Long preid);

    void updatePatientSendFlag(@Param("preid") Long preid);

    void updateDocSendFlag(@Param("preid") Long preid);
}
